﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace PRE.Report
{
    using DevExpress.XtraPrinting;
    using DevExpress.XtraEditors;
    using DevExpress.XtraReports.UI;

    public partial class Report_Base : DevExpress.XtraEditors.XtraForm
    {
        public Report_Base()
        {
            InitializeComponent();
        }

        public void SetReport(XtraReport report)
        {
            printControl1.PrintingSystem = report.PrintingSystem;
            report.CreateDocument();
            printControl1.UpdatePageView();
        }

    }
}